package com.ruyuan.scholartrade.controller;

import com.scholar.shop.common.CommonRes;
import com.scholar.shop.trad.snCreator.api.TradeSnCreatorAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @description: 交易编号生成client
 * @author: fk
 * @create: 2020/3/23 16:41
 * @version:1.0
 * @since:7.2.0
 **/
@CrossOrigin
@RestController
@RequestMapping("/trade/snCreator/open/api/")
public class TradeSnCreatorAPIController  {

    @Autowired
    private TradeSnCreatorAPI tradeSnCreator;

    @PostMapping("generateSmallChangeLogSn")
    public CommonRes<String> generateSmallChangeLogSn() {

        return tradeSnCreator.generateSmallChangeLogSn();
    }
}
